<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <div>
        <script src="fvue.js"></script>
        <script>
            const vm = new FVue({
                data: {
                    test: "alibaba",
                    foo: {
                        bar: 'bar'
                    }
                }

            })
            console.log(vm.$data.foo.bar)
            vm.$data.foo.bar = "鲁智深"
            console.log(vm.$data.foo.bar)
        </script>
        <!-- <span id="name"></span>
        <script>
            // definePropertive()使用方法
            var a = {}
            Object.defineProperty(a, "name", {
                get: function() {
                    return document.getElementById("name").innerHTML
                },
                set: function(inner) {
                    document.getElementById("name").innerHTML = inner
                }
            })
            console.log(a.name)
            a.name = "孙尚香"
            console.log(a.name);
        </script> -->
    </div>
</body>

</html>